package com.guguskins.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guguskins.back.entity.GuUser;
import com.guguskins.back.entity.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-05-08
 */
@Repository
public interface GuUserMapper extends BaseMapper<GuUser> {

    List<GuUser> getPageDataByRollId(@Param("index") int index, @Param("size") int size, @Param("rollId") long rollId);

    Long getCountByRollId(@Param("rollId") long rollId);

    List<UserVo> getUsersByRollId(@Param("rollId") long rollId, @Param("searchKey") String searchKey);
}
